<!DOCTYPE html>
<!-- saved from url=(0032)http://127.0.0.1:8000/category/8 -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    {% load static %}
    <title>首页</title>
    <link rel="stylesheet" href="{% static 'goods/css/login.css' %}">
    <link rel="stylesheet" href="{% static 'goods/css/index.css' %}">
    <link rel="stylesheet" href="{% static 'goods/css/detail.css' %}">
    <link rel="stylesheet" href="{% static 'goods/css/carts.css' %}">
    <link rel="stylesheet" href="{% static 'goods/css/reset.css' %}">
    <link rel="stylesheet" href="{% static 'goods/css/mygxin.css' %}">
    <script src="{% static 'goods/js/jquery.min.js.下载' %}"></script>
    <script src="{% static 'goods/js/carts.js.下载' %}"></script>

    
    

</head>
<body>

<div class="head">
    <div class="head-in">
        <ul class="options">
            <li class="sub"><a href="http://127.0.0.1:8000/?category=2#">我的订单</a></li>
            
            <li class="sub"><a href="http://127.0.0.1:8000/?category=2#">客户服务</a></li>
            <li class="sub"><a href="http://127.0.0.1:8000/cart/cart.html">我的购物车</a></li>
        </ul>

        
            <div class="register"><a href="http://127.0.0.1:8000/user/register">免费注册</a></div>
            <div class="sign"><a href="http://127.0.0.1:8000/user/login">登录</a></div>
        




    </div>
</div>
<div class="search">
    <ul class="items">
        <li class="item">
            <a href="http://127.0.0.1:8000/?category=2#">
                <img src="{% static 'goods/images/1_09.png' %}">
                <p>10:00开抢</p>
            </a>
        </li>
        <li class="item">
            <a href="http://127.0.0.1:8000/?category=2#">
                <img src="{% static 'goods/images/1_11.png' %}">
                <p>买手砍价</p>
            </a>
        </li>
        <li class="item">
            <a href="http://127.0.0.1:8000/?category=2#">
                <img src="{% static 'goods/images/1_13.png' %}">
                <p>验货质检</p>
            </a>
        </li>
    </ul>
    <div class="input">
        <form action="">
            <input type="text" name="q" placeholder="请输入想找的宝贝" style="height: 30px">
            <input type="submit" value="搜索" style="background-color: white;width: 40px;height: 30px;font-size: 16px">
        </form>

    </div>
</div>

    
    <div class="classes">
        <ul class="classes-items">
            {% for item in type_list %}
                <li class="items"><a href="{% url 'goods:type_goods' pcode=item.id  %}">{{ item.cname }}</a></li>
            {% endfor %}
        </ul>
    </div>

<div class="goods-model">

        <div class="goods-content">
                {% for goods in goods_list %}
                    <div class="good">
                        <a href="http://127.0.0.1:8000/goodsdetails/4">
                            <img src="{{ goods.detail_set.all.0.gd_url.url }}" width="285px" height="285px">
                            <p class="name">{{ goods.g_name }}</p>
                            <div class="price">

                                <p class="big">{{ goods.price }}</p>

                            </div>
                            <div class="sale">
                                特卖
                            </div>
                        </a>
                    </div>
                {% endfor %}
        </div>

    </div>

<div id="pager" style="text-align: center; font-size: 16px; overflow: hidden; margin-top: 10px;">
        

        

            <a href="http://127.0.0.1:8000/category/8/page/2" style="display: inline-block; padding: 5px; margin: 5px;">下一页</a>

        

</div>


     <script>
        $('#pager').css({'text-align':'center','font-size':'16px','overflow':'hidden','margin-top':'10px'});
        $('#pager a').css({'display':'inline-block','padding':'5px','margin':'5px'})

    </script>



</body></html>